<?php

namespace Application\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Application\Form\ContactForm;
use Application\Model\Contact;
use Application;
use Zend\Mvc\Controller\ActionController;
use Zend\Mail;
use Application\Form\SampleForm;
use Zend\Session\Container;

class ChangelanguageController extends AbstractActionController
{
    
	
	public function changelanguageAction(){
		return new ViewModel();
    }
    public function frenchAction(){
    	$user_session = new Container('user');   	 
    	$user_session->language = 'fr_FR';
    	
    	
    	return $this->redirect()->toRoute('home',
    			array('controller'=>'Index',
    					'action' => 'index',
    					 
    			));
    }
    public function englishAction(){
    	$user_session = new Container('user');
    	 
    	$user_session->language = 'en_US';
    	
    	return $this->redirect()->toRoute('home',
    			array('controller'=>'Index',
    					'action' => 'index',
    	
    			));
    }
 
}
